
<div class="tab-pane " id="fanpai">
	{if $system['fanpai']==1}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">翻牌参数</div>
		<div class="panel-body" style="">

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">选择抽奖分组</label>
				<div class="col-sm-8 col-xs-12">
					<select class="form-control" name="fanpaigroupid">
						<option value="0">不使用翻牌抽奖</option>
						{loop $grouplist $row}
						<option value="{$row['id']}" {if $config['fanpaigroupid'] == $row['id'] }selected="selected"{/if}>{$row['groupname']}</option>
						{/loop}
					</select>
					<span class="help-block">选择活动对应的翻牌抽奖分组 <a style="color: #ff0000" href="{php echo createWebUrl('giftgroup',array('op' => 'giftgroup','themeid'=>$themeid));}" target="_blank">点击设置抽奖分组</a></span>
					<span class="help-block">可在抽奖分组里设置中奖率，根据中奖率越高的客户首先抽中，中奖率相同的进行随机选择</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">抽奖客户</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="fanpaifanwei" value="0" {if $config['fanpaifanwei']!=1} checked="checked"{/if} type="radio"> 报名客户
					</label>
					<label class="radio-inline">
						<input name="fanpaifanwei" value="1" {if $config['fanpaifanwei']==1} checked="checked"{/if} type="radio"> 未报名+报名客户
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">是否显示中奖记录</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="fanpaijilu" value="0" {if $config['fanpaijilu']!=1} checked="checked"{/if} type="radio"> 显示
					</label>
					<label class="radio-inline">
						<input name="fanpaijilu" value="1" {if $config['fanpaijilu']==1} checked="checked"{/if} type="radio"> 不显示
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">中奖规则</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="fanpai_type" value="0" {if $config['fanpai_type']!=1} checked="checked"{/if} type="radio"> 同一用户先中【中奖率大】的，同一中奖率随机中
					</label>
					<label class="radio-inline">
						<input name="fanpai_type" value="1" {if $config['fanpai_type']==1} checked="checked"{/if} type="radio"> 按中奖率随机中
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">翻牌图片</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_image('fanpaiimg',$config['fanpaiimg']);}
					<span class="help-block">未翻牌时的图片，建议100*100像素</span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">翻牌背景颜色</label>
				<div class="col-sm-5 col-xs-12">
					{php echo view_form_field_color('fanpaibgcolor',$config['fanpaibgcolor']);}
				</div>
			</div>

		</div>
	</div>
	{/if}

	{if $system['islottery']==1}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">大转盘抽奖</div>
		<div class="panel-body" style="">
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">抽奖结束时间</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_daterange('lotterytime', array('start'=>date('Y-m-d H:i:s',$config['lotterybegintime']),'end'=>date('Y-m-d H:i:s',$config['lotteryendtime'])), true);}
					<span class="help-block">抽奖结束，将跳转至活动报名页</span>
				</div>
			</div>
			{if $system['iswechatgroup']==1}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">中奖后进群提示</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="wechatgrouptips"  value="{php echo empty($config['wechatgrouptips'])?'凭此图扫码进群到店免费领取领取时间截屏扫码进群获取':$config['wechatgrouptips'];}">
					<span class="help-block">如：凭此图扫码进群到店免费领取领取时间截屏扫码进群获取</span>
				</div>
			</div>
			{/if}
			{if $system['islottery']==1}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">报名方式</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="lottery_join" value="0" {if $config['lottery_join']==0} checked="checked"{/if} type="radio"> 无需报名且无需授权头像
					</label>
					<label class="radio-inline">
						<input name="lottery_join" value="1" {if $config['lottery_join']==1} checked="checked"{/if} type="radio"> 抽奖前报名并授权头像
					</label>
					<label class="radio-inline">
						<input name="lottery_join" value="2" {if $config['lottery_join']==2} checked="checked"{/if} type="radio"> 抽奖前授权头像中奖后报名
					</label>
					<label class="radio-inline">
						<input name="lottery_join" value="3" {if $config['lottery_join']==3} checked="checked"{/if} type="radio"> 中奖后报名并授权头像
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">幸运大转盘底部文字</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="lottery_title"  value="{php echo empty($config['lottery_title'])?'天天赚不停':$config['lottery_title'];}">
					<span class="help-block">如：天天赚不停</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">我的记录顶部提示</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="lottery_mytips"  value="{php echo empty($config['lottery_mytips'])?'每个奖项只能兑换一次，且需完成相应任务':$config['lottery_mytips'];}">
					<span class="help-block">如：每个奖项只能兑换一次，且需完成相应任务</span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">未中奖提示</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="lose_tips"  value="{$config['lose_tips']}">
					<span class="help-block">如：邀请好友参与活动，可再获得1次抽奖机会</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">分享朋友圈海报提示</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="play_bill_tips"  value="{$config['play_bill_tips']}">
					<span class="help-block">如：将海报分享到朋友圈，务删除兑换时需验证</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">更多礼品:分享奖</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="morelottery_fenxiang"  value="{php echo empty($config['morelottery_fenxiang'])?'将活动小程序分享给#NUM个微信好友，即可凭截图到店领取':$config['morelottery_fenxiang'];}">
					<span class="help-block">如：将活动小程序分享给#NUM个微信好友，即可凭截图到店领取； #NUM为奖品中配置的次数</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">更多礼品:助力奖</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="morelottery_zhuli"  value="{php echo empty($config['morelottery_zhuli'])?'将活动小程序分享给好友或朋友圈，有#NUM个好友打开小程序，即可凭截图到店领取':$config['morelottery_zhuli'];}">
					<span class="help-block">如：将活动小程序分享给好友或朋友圈，有#NUM个好友打开小程序，即可凭截图到店领取； #NUM为奖品中配置的次数</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">霸王枪优惠说明</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_image('first_buy_tips',$config['first_buy_tips']);}
					<span class="help-block">攻略中点击【报名】的弹窗提示，建议为PNG图</span>
				</div>
			</div>
			{/if}

			{if $system['ispoints']==1}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">锦鲤积分福利</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_image('points_rank_in_img',$config['points_rank_in_img']);}
					<span class="help-block">锦鲤排行-锦鲤福利中显示，建议为PNG图</span>
				</div>
			</div>
<!--			<div class="form-group">-->
<!--				<label class="col-sm-2 col-xs-12 control-label">公众号二维码</label>-->
<!--				<div class="col-sm-8 col-xs-12">-->
<!--					{php echo view_form_field_image('qr_img',$config['qr_img']);}-->
<!--					<span class="help-block">积分排行榜底部</span>-->
<!--				</div>-->
<!--			</div>-->
			{/if}
		</div>
	</div>
	{/if}
	{if $system['ispoints']==1}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">积分赢豪礼</div>
		<div class="panel-body" style="">
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">积分时间</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_daterange('pointstime', array('start'=>date('Y-m-d H:i:s',$config['pointsbegintime']),'end'=>date('Y-m-d H:i:s',$config['pointsendtime'])), true);}
					<span class="help-block">积分结束，只能查看排名，不可新增积分</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">霸王抢时间</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_daterange('first_buy_time', array('start'=>date('Y-m-d H:i:s',$config['first_buy_begintime']),'end'=>date('Y-m-d H:i:s',$config['first_buy_endtime'])), true);}
					<span class="help-block">霸王抢购时间，新增积分会不同，且霸王抢的福利可能不同，在定单管理中有区分；</span>
				</div>
			</div>


			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">分享到朋友圈</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="pointsquan"  value="{$config['pointsquan']}">
						<span class="input-group-addon">分</span>
						<span class="input-group-addon">可获得天数</span>
						<select class="form-control" name="pointsquanday">
							<option value="0" {if $config['pointsquanday'] == 0 }selected="selected"{/if}>不限制</option>
							<option value="1" {if $config['pointsquanday'] == 1 }selected="selected"{/if}>1天</option>
							<option value="2" {if $config['pointsquanday'] == 2 }selected="selected"{/if}>2天</option>
							<option value="3" {if $config['pointsquanday'] == 3 }selected="selected"{/if}>3天</option>
							<option value="4" {if $config['pointsquanday'] == 4 }selected="selected"{/if}>4天</option>
							<option value="5" {if $config['pointsquanday'] == 5 }selected="selected"{/if}>5天</option>
						</select>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">分享到微信群</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="pointsqun"  value="{$config['pointsqun']}">
						<span class="input-group-addon">分</span>
						<span class="input-group-addon">最多</span>
						<input type="text" class="form-control"  placeholder="" name="pointsqunday"  value="{$config['pointsqunday']}">
						<span class="input-group-addon">个微信群</span>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">好友到访</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="pointsview"  value="{$config['pointsview']}">
						<span class="input-group-addon">分</span>
						<span class="input-group-addon">最多</span>
						<input type="text" class="form-control"  placeholder="" name="pointsviewmax"  value="{$config['pointsviewmax']}">
						<span class="input-group-addon">个好友</span>
						<span class="input-group-addon">好友类别</span>
						<select class="form-control" name="pointsviewtype">
<!--							<option value="0" {if $config['pointsviewtype'] == 0 }selected="selected"{/if}>不限制</option>-->
							<option value="1" {if $config['pointsviewtype'] == 1 }selected="selected"{/if}>仅限从未打过链接的新用户</option>
						</select>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">自己下单</label>
				<div class="col-sm-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">霸王抢</span>
						<input type="text" class="form-control"  placeholder="" name="pointsselfbw"  value="{$config['pointsselfbw']}">
						<span class="input-group-addon">分</span>
						<span class="input-group-addon">正常抢购</span>
						<input type="text" class="form-control"  placeholder="" name="pointsselfzc"  value="{$config['pointsselfzc']}">
						<span class="input-group-addon">分</span>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">好友下单</label>
				<div class="col-sm-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">霸王抢</span>
						<input type="text" class="form-control"  placeholder="" name="pointsfriendbw"  value="{$config['pointsfriendbw']}">
						<span class="input-group-addon">分</span>
						<span class="input-group-addon">正常抢购</span>
						<input type="text" class="form-control"  placeholder="" name="pointsfriendzc"  value="{$config['pointsfriendzc']}">
						<span class="input-group-addon">分</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">锦鲤奖项说明</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_multi_image('pointsimgs',$config['pointsimgs']);}
					<span class="help-block">锦鲤积分排名上方显示，主要介绍积分有哪些奖项</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">锦鲤积分排名</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="points_isshow" value="0" {if $config['points_isshow']==0} checked="checked"{/if} type="radio"> 不显示
					</label>
					<label class="radio-inline">
						<input name="points_isshow" value="1" {if $config['points_isshow']==1} checked="checked"{/if} type="radio"> 显示
					</label>
				</div>
			</div>
		</div>
	</div>
	{/if}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">抽奖规则 <a style="color: #b6b3b3" href="https://css2019.yixuan.net/2019css/fanpai/guize.jpg" target="_blank">点击查看参考规则</a></div>
		<div class="panel-body" style="">

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">抽奖机会上限</label>
				<div class="col-sm-3 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fanpailimit"  value="{$config['fanpailimit']}">
						<span class="input-group-addon">次</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">未报名可抽</label>
				<div class="col-sm-3 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fanpaiweibaoming"  value="{$config['fanpaiweibaoming']}">
						<span class="input-group-addon">次</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">成功报名加抽</label>
				<div class="col-sm-3 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fanpaibaoming"  value="{$config['fanpaibaoming']}">
						<span class="input-group-addon">次</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">邀请一位好友报名加抽</label>
				<div class="col-sm-3 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="fanpaiyaoqing"  value="{$config['fanpaiyaoqing']}">
						<span class="input-group-addon">次</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">分享朋友圈加抽</label>
				<div class="col-sm-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">第1天</span>
						<input type="text" class="form-control"  placeholder="" name="fanpai1day"  value="{$config['fanpai1day']}">
						<span class="input-group-addon">第2天</span>
						<input type="text" class="form-control"  placeholder="" name="fanpai2day"  value="{$config['fanpai2day']}">
						<span class="input-group-addon">第3天</span>
						<input type="text" class="form-control"  placeholder="" name="fanpai3day"  value="{$config['fanpai3day']}">
						<span class="input-group-addon"></span>
						<select class="form-control" name="fanpaipengyouquan">
							<option value="0" {if $config['fanpaipengyouquan'] == 0 }selected="selected"{/if}>未报名+报名客户</option>
							<option value="1" {if $config['fanpaipengyouquan'] == 1 }selected="selected"{/if}>报名客户</option>
						</select>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">好友到访</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<input type="text" class="form-control"  placeholder="" name="lotteryview"  value="{$config['lotteryview']}">
						<span class="input-group-addon">个好友到访，增加1次抽奖机会</span>

						<span class="input-group-addon">好友类别</span>
						<select class="form-control" name="lotteryviewtype">
<!--							<option value="0" {if $config['lotteryviewtype'] == 0 }selected="selected"{/if}>不限制</option>-->
							<option value="1" {if $config['lotteryviewtype'] == 1 }selected="selected"{/if}>仅限从未打过链接的新用户</option>
						</select>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>